package com.yuedao.sender.model1;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created with IntelliJ IDEA
 * User: z
 * DATE: 2018/8/13
 * TIME: 2018-08-13
 * Description:
 */


@Entity
@Table(name = "ydx_orders")
public class OrderEntityExtra  {
    private int id;
    private String orderNo;
    private Timestamp createTime;
    private Timestamp scheduledTime;
    private Timestamp departTime;
    private int orderPrice;
    private int realPrice;
    private Integer extraCharge;
    private Integer driverRating;
    private Integer passengerRating;
    private Integer orderStatusId;
    private Integer servicePlaceId;
    private Integer receiptId;
    private Integer paymentMethodId;
    private Integer priceCodeId;
    private Integer promotionCodeId;
    private Integer franchiseeId;
    private Integer driverId;
    private Integer orderCreatorId;
    private Integer passengerId;
    private int vehicleTypeId;
    private String description;
    private Integer paymentStatus;
    private String b2bUserId;
    private String b2bOrderNo;


    //非持久化字段，乘客 下单时
    private Integer findDriver;




    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id", nullable = false)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "order_no", nullable = true, length = 32)
    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    @Basic
    @Column(name = "create_time", nullable = false)
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "scheduled_time", nullable = false)
    public Timestamp getScheduledTime() {
        return scheduledTime;
    }

    public void setScheduledTime(Timestamp scheduledTime) {
        this.scheduledTime = scheduledTime;
    }

    @Basic
    @Column(name = "depart_time", nullable = false)
    public Timestamp getDepartTime() {
        return departTime;
    }

    public void setDepartTime(Timestamp departTime) {
        this.departTime = departTime;
    }

    @Basic
    @Column(name = "order_price", nullable = false)
    public int getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(int orderPrice) {
        this.orderPrice = orderPrice;
    }

    @Basic
    @Column(name = "real_price", nullable = false)
    public int getRealPrice() {
        return realPrice;
    }

    public void setRealPrice(int realPrice) {
        this.realPrice = realPrice;
    }

    @Basic
    @Column(name = "extra_charge", nullable = true)
    public Integer getExtraCharge() {
        return extraCharge;
    }

    public void setExtraCharge(Integer extraCharge) {
        this.extraCharge = extraCharge;
    }

    @Basic
    @Column(name = "driver_rating", nullable = true)
    public Integer getDriverRating() {
        return driverRating;
    }

    public void setDriverRating(Integer driverRating) {
        this.driverRating = driverRating;
    }

    @Basic
    @Column(name = "passenger_rating", nullable = true)
    public Integer getPassengerRating() {
        return passengerRating;
    }

    public void setPassengerRating(Integer passengerRating) {
        this.passengerRating = passengerRating;
    }

    @Basic
    @Column(name = "order_status_id", nullable = true)
    public Integer getOrderStatusId() {
        return orderStatusId;
    }

    public void setOrderStatusId(Integer orderStatusId) {
        this.orderStatusId = orderStatusId;
    }

    @Basic
    @Column(name = "service_place_id", nullable = true)
    public Integer getServicePlaceId() {
        return servicePlaceId;
    }

    public void setServicePlaceId(Integer servicePlaceId) {
        this.servicePlaceId = servicePlaceId;
    }

    @Basic
    @Column(name = "receipt_id", nullable = true)
    public Integer getReceiptId() {
        return receiptId;
    }

    public void setReceiptId(Integer receiptId) {
        this.receiptId = receiptId;
    }

    @Basic
    @Column(name = "payment_method_id", nullable = true)
    public Integer getPaymentMethodId() {
        return paymentMethodId;
    }

    public void setPaymentMethodId(Integer paymentMethodId) {
        this.paymentMethodId = paymentMethodId;
    }

    @Basic
    @Column(name = "pricing_code_id", nullable = true)
    public Integer getPriceCodeId() {
        return priceCodeId;
    }

    public void setPriceCodeId(Integer priceCodeId) {
        this.priceCodeId = priceCodeId;
    }

    @Basic
    @Column(name = "promotion_code_id", nullable = true)
    public Integer getPromotionCodeId() {
        return promotionCodeId;
    }

    public void setPromotionCodeId(Integer promotionCodeId) {
        this.promotionCodeId = promotionCodeId;
    }

    @Basic
    @Column(name = "franchisee_id", nullable = true)
    public Integer getFranchiseeId() {
        return franchiseeId;
    }

    public void setFranchiseeId(Integer franchiseeId) {
        this.franchiseeId = franchiseeId;
    }

    @Basic
    @Column(name = "driver_id", nullable = true)
    public Integer getDriverId() {
        return driverId;
    }

    public void setDriverId(Integer driverId) {
        this.driverId = driverId;
    }

    @Basic
    @Column(name = "order_creator_id", nullable = true)
    public Integer getOrderCreatorId() {
        return orderCreatorId;
    }

    public void setOrderCreatorId(Integer orderCreatorId) {
        this.orderCreatorId = orderCreatorId;
    }

    @Basic
    @Column(name = "passenger_id", nullable = true)
    public Integer getPassengerId() {
        return passengerId;
    }

    public void setPassengerId(Integer passengerId) {
        this.passengerId = passengerId;
    }

    @Basic
    @Column(name = "vehicle_type_id", nullable = false)
    public int getVehicleTypeId() {
        return vehicleTypeId;
    }

    public void setVehicleTypeId(int vehicleTypeId) {
        this.vehicleTypeId = vehicleTypeId;
    }

    @Basic
    @Column(name = "description", nullable = true, length = 2048)
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Basic
    @Column(name = "payment_status", nullable = true)
    public Integer getPaymentStatus() {
        return paymentStatus;
    }

    public void setPaymentStatus(Integer paymentStatus) {
        this.paymentStatus = paymentStatus;
    }


    @Basic
    @Column(name = "b2b_user_id", nullable = true)
    public String getB2bUserId() {
        return b2bUserId;
    }

    public void setB2bUserId(String b2bUserId) {
        this.b2bUserId = b2bUserId;
    }



    @Basic
    @Column(name = "b2b_order_id", nullable = true)
    public String getB2bOrderNo() {
        return b2bOrderNo;
    }

    public void setB2bOrderNo(String b2bOrderNo) {
        this.b2bOrderNo = b2bOrderNo;
    }

    @Transient
    public Integer getFindDriver() {
        return findDriver;
    }

    public void setFindDriver(Integer findDriver) {
        this.findDriver = findDriver;
    }


}
